package com.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mapper.UserInfoMapper;
import com.pojo.entity.SysUserInfo;
import com.service.SysUserInfoService;
import com.service.SysUtilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("/SysUserInfoService")
public class SysUserInfoServiceImpl implements SysUserInfoService {

    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public SysUserInfo select(Long id) {
        QueryWrapper<SysUserInfo> wrapper1 = new QueryWrapper<>();
        wrapper1.select("real_name");
        wrapper1.eq("user_num", id);
        SysUserInfo sysUserInfo = userInfoMapper.selectOne(wrapper1);
        return  sysUserInfo;
    }
}